#include <global.h>
#include "getAmmo_cv.h"
#include "CSerialPort.h"
#include "DataStruct.h"
using namespace cv;
using namespace std;
DataStruct send_data = {0, 0, 0, 0, 0x5A};
char mode=0x02;
int main()
{
			cout<<"0.1 ";

	VideoCapture cap(0);
		cout<<"0.1 ";
	FindAmmo ammol;
		cout<<"0.2 ";
	Mat frame;
	while (1)
	{
		cout<<"0.1 ";
		cap >> frame;
				cout<<"0.2 ";
ammol.getAmmo(frame,mode);
		cout<<"    balabalaba"<<endl<<endl<<endl;
	}
	return 0;
}
